# -*- coding: utf-8 -*-
import logging.config


class LoggingDemo:
    def _test_base(self):
        """
        ld = LoggingDemo()
        ld._test_base()
        """
        # 配置日志文件，控制台打印
        logging.config.fileConfig('conf/cLogging.conf')
        # create logger
        logger = logging.getLogger('simple')
        # 'application' code
        logger.debug('debug message')
        logger.info('info message')
        logger.warn('warn message')
        logger.error('error message')
        logger.critical('critical message')


if __name__ == '__main__':
    ld = LoggingDemo()
    ld._test_base()
